package com.adnaan.backend.utils;

import cn.dev33.satoken.stp.StpUtil;

import java.util.List;

/**
 * author: adnaan
 * create: 2025-02-28 21:16
 * Description:
 */
public class AuthUtils {

    //是否为管理员
    public static Boolean isAdmin() {
        List<String> roleList = StpUtil.getRoleList();
        return roleList.contains("ADMIN");
    }
}
